<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/webp" href="favicon.webp">
    <title>Microsoft Hosts Picker</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Sans+SC:wght@400;700&display=swap" rel="stylesheet">
</head>
<body>
    <div class="container">
        <header>
            <h1 class="title">Microsoft Hosts Picker 💊</h1>
            <p class="description" data-en="Optimize your Microsoft service connection speed" data-zh="优化您的 Microsoft 服务连接速度"></p>
            <div class="language-switch">
                <button id="zh-btn" class="active">中文</button>
                <button id="en-btn">English</button>
            </div>
        </header>
        <main>
            <div class="features">
                <div class="feature">
                    <span class="emoji">🚀</span>
                    <h3 data-en="Fast Connection" data-zh="快速连接"></h3>
                    <p data-en="Automatically select the fastest IP address" data-zh="自动选择最快的 IP 地址"></p>
                </div>
                <div class="feature">
                    <span class="emoji">🛡️</span>
                    <h3 data-en="Safe and Reliable" data-zh="安全可靠"></h3>
                    <p data-en="Use official IP addresses to ensure security" data-zh="使用官方 IP 地址，确保安全"></p>
                </div>
                <div class="feature">
                    <span class="emoji">⚙️</span>
                    <h3 data-en="Easy to Use" data-zh="易于使用"></h3>
                    <p data-en="Generate optimized hosts file with one click" data-zh="一键生成优化后的 hosts 文件"></p>
                </div>
            </div>
            <div class="action-buttons">
                <a href="https://mshost.hee.ink/MicrosoftHostsPicker.zip" class="cta-button download-button" data-en="Download ZIP" data-zh="下载 ZIP 文件"></a>
                <a href="https://github.com/ButaiKirin/MicrosoftHostsPicker" class="cta-button github-button" data-en="View on GitHub" data-zh="在 GitHub 上查看"></a>
            </div>
        </main>
        <footer>
            <p>
                © <span id="copyright-years"></span> ButaiKirin. Released under the <a href="https://github.com/ButaiKirin/MicrosoftHostsPicker/blob/main/LICENSE" target="_blank" rel="noopener noreferrer">MIT License</a>.
            </p>
        </footer>
    </div>
    <script src="script.js"></script>
</body>
</html>
